www.gusucode.com > RQCMS PHP文章管理系统 v2.3PHP源码程序 > RQCMS PHP文章管理系统 v2.3/rqcms_v2.3/rqcms_v2.3/data/themes/shinehome/index.php

    <?php
include RQ_DATA."/themes/$theme/header.php";
?>
   <td class="line_buttom_hui"><div class="weizhi">HOME</div></td>
      </tr>
 <tr>
    <td>
      <br>
	  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tbody><tr>
          </tr>
	<?php
	$catearr=getChildArr(2,$category);
	$cateids=implode(',',$catearr);
	$articledb=getLatestArticle(12,$cateids);
	$articledb=array_values($articledb);
    for($i=0;$i<3;$i++)
	{
	echo '<tr>';
	//先输入输出tr /tr
	//print_r($articledb);exit;
	for($j=0;$j<4;$j++)
	{
		if(isset($articledb[$i*4+$j]))
		{
			$article=$articledb[$i*4+$j];
			?>
					  <td valign="top"><table width="150" border="0" cellpadding="0" cellspacing="0" style="margin:0 auto 10px auto;">
	<tbody><tr>
	  <td height="150" align="center" bgcolor="#FFFFFF" class="border_hui"><a href="<?php echo $article['aurl'];?>"> <img src="<?php echo $article['thumb'];?>" width="150" height="150" alt="<?php echo $article['title'];?>" border="0"></a></td>
	</tr>
	<tr>
	  <td align="center"><a href="<?php echo $article['aurl'];?>"><?php echo $article['title'];?></a></td>
	</tr>
	</tbody></table>            </td>		
			<?php
		}
		else
		{
		?>
		<td valign="top"></td>		
	<?php
		}
	}
	echo '</tr>';
	}
	

	?>
</tbody></table><tr>
</tbody></table>
</div>
</td>
    </tr>
  </tbody></table>
  
<?php
include RQ_DATA."/themes/$theme/footer.php";
?>